package com.ten.jinxiancun.server;

import com.ten.jinxiancun.entity.User;

import java.util.List;
import java.util.Map;

/*
* 用户表 操作
* */
public interface userServer {
    public List<Map<String,Object>> getAlluser(Map<String,Object> map);
    public Integer userCount();
    public Integer AddUserFind(User user);
    public Integer UpdateUserFind(Map<String, Object> map);
    public Integer DelectUserFind(Integer id);
    //下拉框
    public  List<Map<String, Object>>  UserType(Map<String, Object> map);
    /*
    * 穿梭框
    * */
    public List<Map<String, Object>> getRolesFind(Map<String, Object> map);

    public List<Map<String, Object>> getUserRolesFind(Map<String, Object> map);

    public Integer addRolesFind(Map<String, Object> map);

    public Integer deleteRolesFind(Integer userId, Integer roleId);
    public Integer addRolesMenuFind(Map<String, Object> map);

    public Integer deleteRolesMenuFind(Integer menuId, Integer roleId);

}
